WooCommerce\Square\Gateway\Digital_Wallet D

Total Complexity 250
Dependencies 10
Dependents 1
Total lines 1,404
Lines of code 823
Logical lines of code 431
Comment lines 385
Methods 35
Properties 5

Methods 35

Method Rating Maintainability Complexity Lines of code
ajax_recalculate_totals()
B
35 18 84
init()
B
40 20 48
build_payment_request_line_items()
A
41 14 54
get_product_payment_request()
A
42 12 47
apple_pay_domain_registration()
A
50 12 25
get_payment_request_for_context()
A
48 11 31
build_payment_request()
A
41 9 53
allowed_for_product_page()
A
52 11 22
ajax_get_payment_request()
A
50 10 25
register_apple_pay_domain()
A
47 9 34
allowed_for_cart()
A
56 10 15
is_available_for_page()
A
58 10 14
get_state_code_by_name()
A
54 9 21
get_current_page()
A
57 9 15
render_button()
A
47 7 36
check_apple_pay_verification_file()
S
51 7 27
admin_notices()
S
49 6 31
filter_checkout_fields()
S
59 7 13
does_checkout_require_custom_fields()
S
46 5 42
filter_posted_data()
S
61 7 12
ajax_add_to_cart()
S
52 6 23
__construct()
S
55 6 17
calculate_shipping()
S
48 5 32
enqueue_scripts()
S
55 4 18
get_hidden_button_options()
S
67 4 7
is_available()
S
70 4 6
ajax_process_checkout()
S
64 3 10
update_shipping_method()
S
65 3 9
get_option_is_apple_pay_enabled()
S
69 3 6
get_cart_totals()
S
61 2 12
apple_pay_verification_file_location()
S
76 2 3
is_digital_wallet_enabled()
S
78 2 3
supported_product_types()
S
62 1 14
get_available_pages()
S
65 1 11
get_localised_data()
S
82 1 3